<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt"%>

<div class="page-content-wrap">
	<form class="layui-form" action="">
		<p style="font-size: 20px;margin-bottom: 20px">我的保险</p>
	</form>
	<div class="layui-form" id="table-list">
		<table class="layui-table" lay-even lay-skin="nob">
			<%--			<thead>--%>
			<tr>
				<th><input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose"></th>
				<th style="width: 80px">订单编号</th>
				<th class="hidden-xs">车辆品牌</th>
				<th class="hidden-xs">车辆型号</th>
				<th>保险日期</th>
				<th>到期时间</th>
			</tr>
			<%--			</thead>--%>
			<tbody>
			<c:forEach items="${insuresList}" var="i">
				<tr>
					<td><input type="checkbox" name="" lay-skin="primary" data-id="1"></td>
					<td>
						<c:forEach items="${orderList}" var="c">
							<c:if test="${i.uId == c.userId}">${c.ordersNo}</c:if>
						</c:forEach>
					</td>
					<td>
						<c:forEach items="${brandsList}" var="b">
							<c:if test="${i.brId == b.id}">${b.brName}</c:if>
						</c:forEach>
					</td>
					<td>
						<c:forEach items="${stylesList}" var="s">
							<c:if test="${i.sId == s.id }">${s.stName}</c:if>
						</c:forEach>
					</td>
					<td>
						<fmt:formatDate value="${i.time}" pattern="yyyy-MM-dd "/>
					</td>
					<td>
						<fmt:formatDate value="${i.dTime}" pattern="yyyy-MM-dd "/>
					</td>
				</tr>
			</c:forEach>
			</tbody>
		</table>
		<%--		<div class="page-wrap">--%>
		<%--			<ul class="pagination">--%>
		<%--				<li class="disabled"><span>«</span></li>--%>
		<%--				<li class="active"><span>1</span></li>--%>
		<%--				<li>--%>
		<%--					<a href="#">2</a>--%>
		<%--				</li>--%>
		<%--				<li>--%>
		<%--					<a href="#">»</a>--%>
		<%--				</li>--%>
		<%--			</ul>--%>
		<%--		</div>--%>
	</div>
</div>
</body>

</html>